package com.beka.frame.listener;

import com.beka.frame.base.ServletResourcePatternResovlerAndLoader;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * Created by IntelliJ IDEA.
 * User: Administrator
 * Date: 12-4-18
 * Time: 上午12:22
 * To change this template use File | Settings | File Templates.
 */

public final class SystemSetupListener implements ServletContextListener {
    private static Log logger = LogFactory.getLog(SystemSetupListener.class);

    public void contextInitialized(ServletContextEvent event) {
        ServletContext context=event.getServletContext();
        //初始化Servlet资源搜索器
        ServletResourcePatternResovlerAndLoader.init(context);
    }

    public void contextDestroyed(ServletContextEvent event) {
    }
}
